<?php

use Illuminate\Database\Migrations\Migration;

class CreateThongbaoTable extends Migration
{
    /**
    * Run the migrations.
    *
    * @return void
    */
    public function up()
    {
        Schema::create('thong_bao', function($table)
        {
            $table->engine='InnoDB';
            $table->increments('id')->unsigned();
            $table->integer('id_bo_mon')->unsigned();
            $table->integer('id_nguoi_dung')->unsigned();
            $table->text('noi_dung_tb');
            $table->text('nhom_nguoi_xem',10);
            $table->date('ngay_bat_dau');
            $table->date('ngay_ket_thuc');
            $table->boolean('hien_thi');
        });
    }

    /**
    * reverse the migrations.
    *
    * @return void
    */
    public function down()
    {
        Schema::drop('thong_bao');
    }
}